﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.IO;
using System.Runtime.Serialization;

namespace FileHelper
{
   
    public class RemoteFileInfo :IDisposable
    {
             
        public string FileName { get; set; }

              
        public long Length { get; set; }

          
        public Stream FileByteStream { get; set; }        

       
        public string Owner { get; set; }

        
        public int FolderId { get; set; }
        
        public void Dispose()
        {
            if (FileByteStream != null)
            {
                FileByteStream.Close();
                FileByteStream = null;
            }
        }   
    }
}